class CreateCustomers < ActiveRecord::Migration
  def self.up
    create_table :customers do |t|
      t.string :code
      t.integer :title_id
      t.string :first_name
      t.string :last_name
      t.date :birth_date
      t.string :nick_name
      t.integer :nationality_id
      t.string :marr_status
      t.integer :card_type
      t.string :card_no

      t.timestamps
    end
  end

  def self.down
    drop_table :customers
  end
end
